home *** CD-ROM | disk | FTP | other *** search
- Event(load){
- //***************************************************************************
- //amount of frames each headline will remain on the screen
- //the larger the value, the longer each story will remain before fading out
- swapDelay = _root.ScrollRate;
-
- //***************************************************************************
-
- //set the values of these 2 text fields to empty strings...for now.
- headline.text = "";
- story.text = "";
-
- //specify that no headline has been displayed yet
- currentHeadline = 0;
- //set the inital alpha transparency to zero
- _alpha = 0;
- //specifiy that that clickable button is not rolled over on load
- over = 0;
- //initialize the "timer"
- count = 0;
- }
- onClipEvent(enterFrame){
- //if the user is currently rolled over the hit area
- if(over == 0){
- //if the headline is currently invisible...
- if(_alpha == 0){
- //set the new alpha value to 100 (full opacity)
- newAlpha = 100;
- //if the current headline being displayed is the last one in the cycle...
- if(currentHeadline == _root.totalHeadlines){
- //check with Server to see if there are any new news items to be displayed
- _root.totalHeadlines = 0;
- //go back to frame 2 of the movie where it calls to check to see if there are
- //any new news item to be displayed since last checked
- _root.gotoAndStop(2);
- }else{
- //otherwise...move to the next headline in the sequence
- currentHeadline++;
- }
-
- //specify the current headline text, story text, and URL values
- headline.text = "'" + _root["newsHeadline" + currentHeadline] + "'";
- story.text = _root["newsStory" + currentHeadline];
- fullArticleURL = _root["newsfullStoryURL" + currentHeadline];
- }
-
- //if the current alpha value is not within